import React from 'react';
import { Link } from 'react-router-dom';
import ReactEcharts from 'echarts-for-react';

function Charts() {
    return (
        <>
            <h2>Charts</h2>
            <ReactEcharts
                option={{
                    xAxis: {
                        type: 'category',
                        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                    },
                    yAxis: {
                        type: 'value'
                    },
                    series: [{
                        data: [820, 932, 901, 934, 1290, 1330, 1320],
                        type: 'line'
                    }]
                }}
            />
            <Link to="/app1/home">Go Home.</Link>
        </>
    );
}

export default Charts;
